153. Araxis Merge File Comparison Report

Produced by Araxis Merge on 2024-03-04 14:38:51 +0000. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.

153.1 Files compared

#LocationFileLast Modified
1/Users/coca/Documents/www/Porto v4.0.2/Theme Files/Magento 2.x/Porto Theme v4.0.7/app/design/frontend/Smartwave/porto/Smartwave_Filterproducts/templates/widgetowl_list.phtml2023-09-18 02:23:46 +0000
2/Users/coca/Documents/www/Porto v4.0.2/Theme Files/Magento 2.x/Porto Theme v4.0.8/app/design/frontend/Smartwave/porto/Smartwave_Filterproducts/templates/widgetowl_list.phtml2024-03-02 11:15:57 +0000

153.2 Comparison summary

DescriptionBetween
Files 1 and 2
Text BlocksLines
Unchanged21982
Changed10224
Inserted9120
Removed11

153.3 Comparison options

WhitespaceConsecutive whitespace is treated as a single space
Character caseDifferences in character case are significant
Line endingsDifferences in line endings (CR and LF characters) are ignored
CR/LF charactersNot shown in the comparison detail
Active line-pairing rules

153.4 Active regular expressions

No regular expressions were active.

153.5 Comparison detail

1 <?php 1 <?php
2 /** 2 /**
3  * Copyright © 2015 Magento. All rights reserved. 3  * Copyright © 2015 Magento. All rights reserved.
4  * See COPYING.txt for license details. 4  * See COPYING.txt for license details.
5  */ 5  */
6 use Magento\Framework\App\Action\Action; 6 use Magento\Framework\App\Action\Action;
7  7 
8 // @codingStandardsIgnoreFile 8 // @codingStandardsIgnoreFile
9 ?> 9 ?>
10 <?php 10 <?php
11 /** 11 /**
12  * Product list template 12  * Product list template
13  * 13  *
14  * @var $block \Smartwave\Filterproducts\Block\ 14  * @var $block \Smartwave\Filterproducts\Block\
15  */ 15  */
16 ?> 16 ?>
17 <?php 17 <?php
18 if ($exist = ($block->getProductCollection() && $block->getProductCollection()->getSize())) { 18 if ($exist = ($block->getProductCollection() && $block->getProductCollection()->getSize())) {
19   $_productCollection = $block->getProductCollection()->getItems(); 19   $_productCollection = $block->getProductCollection()->getItems();
20   $_helper = $this->helper('Magento\Catalog\Helper\Output'); 20   $_helper = $this->helper('Magento\Catalog\Helper\Output');
21   $_imagehelper = $this->helper('Magento\Catalog\Helper\Image'); 21   $_imagehelper = $this->helper('Magento\Catalog\Helper\Image');
22   $_portohelper = $this->helper('Smartwave\Porto\Helper\Data'); 22   $_portohelper = $this->helper('Smartwave\Porto\Helper\Data');
23   $_category_config = $_portohelper->getConfig('porto_settings/category'); 23   $_category_config = $_portohelper->getConfig('porto_settings/category');
24   $_category_grid_config = $_portohelper->getConfig('porto_settings/category_grid'); 24   $_category_grid_config = $_portohelper->getConfig('porto_settings/category_grid');
25   $_product_label_config = $this->helper('Smartwave\Porto\Helper\Data')->getConfig('porto_settings/product_label'); 25   $_product_label_config = $this->helper('Smartwave\Porto\Helper\Data')->getConfig('porto_settings/product_label');
26   $_lazyload = $this->helper('Smartwave\Porto\Helper\Data')->getConfig('porto_settings/optimization/lazyload'); 26   $_lazyload = $this->helper('Smartwave\Porto\Helper\Data')->getConfig('porto_settings/optimization/lazyload');
27   $extra_class = $this->getData("extra_class"); 27   $extra_class = $this->getData("extra_class");
    28 
    29   $_content_pos1 = $this->getData("product_content_pos1") ? $this->getData("product_content_pos1") : 'left';
    30   $_button_pos = $this->getData("product_button_pos") ? $this->getData("product_button_pos") : 'top';
    31   $_button_action = $this->getData("product_button_action") ? $this->getData("product_button_action") : 'top';
    32   $_icon_only1 = $this->getData("product_icon_only1") ? $this->getData("product_icon_only1") : '0';
    33   $_icon_only2 = $this->getData("product_icon_only2") ? $this->getData("product_icon_only2") : '0';
    34   $_block_pos = $this->getData("product_block_pos") ? $this->getData("product_block_pos") : 'default';
    35   $_quantity_pos = $this->getData("product_quantity_pos") ? $this->getData("product_quantity_pos") : 'below';
    36   $_content_pos2 = $this->getData("product_content_pos2") ? $this->getData("product_content_pos2") : 'default';
    37   $_content_pos3 = $this->getData("product_content_pos3") ? $this->getData("product_content_pos3") : 'left';
    38   $_link_pos = $this->getData("product_link_pos") ? $this->getData("product_link_pos") : 'default';
    39   $_box_style = $this->getData("product_box_style") ? $this->getData("product_box_style") : 'box_shadow';
    40 
28   // Daily deal Helper 41   // Daily deal Helper
29   $_dailydealhelper =$this->helper('Smartwave\Dailydeals\Helper\Data'); 42   $_dailydealhelper =$this->helper('Smartwave\Dailydeals\Helper\Data');
30  43 
31   $aspect_ratio = $this->getData("aspect_ratio"); 44   $aspect_ratio = $this->getData("aspect_ratio");
32   if($aspect_ratio == null) { 45   if($aspect_ratio == null) {
33       $aspect_ratio = $_category_config['aspect_ratio']; 46       $aspect_ratio = $_category_config['aspect_ratio'];
34   } 47   }
35   $image_width = $this->getData("image_width"); 48   $image_width = $this->getData("image_width");
36   if(!$image_width) { 49   if(!$image_width) {
37       $image_width = ($_category_config['ratio_width'])?$_category_config['ratio_width']:300; 50       $image_width = ($_category_config['ratio_width'])?$_category_config['ratio_width']:300;
38   } 51   }
39   $image_height = $this->getData("image_height"); 52   $image_height = $this->getData("image_height");
40   if($aspect_ratio) 53   if($aspect_ratio)
41       $image_height = $image_width; 54       $image_height = $image_width;
42   if(!$image_height) { 55   if(!$image_height) {
43       $image_height = ($_category_config['ratio_height'])?$_category_config['ratio_height']:300; 56       $image_height = ($_category_config['ratio_height'])?$_category_config['ratio_height']:300;
44   } 57   }
45   $product_type = $this->getData("product_type"); 58   $product_type = $this->getData("product_type");
46   if($product_type == null) { 59   if($product_type == null) {
47       $product_type = $_category_grid_config['product_type']; 60       $product_type = $_category_grid_config['product_type'];
48   } 61   }
49   if($product_type == null) { 62   if($product_type == null) {
50       $product_type = 1; 63       $product_type = 1;
51   } 64   }
52   $show_slide_nav = 'false'; 65   $show_slide_nav = 'false';
53   if($this->hasData("show_slide_nav")){ 66   if($this->hasData("show_slide_nav")){
54     $show_slide_nav = $this->getData("show_slide_nav") > 0 ? 'true': 'false'; 67     $show_slide_nav = $this->getData("show_slide_nav") > 0 ? 'true': 'false';
55   } 68   }
56   $show_slide_page = 'false'; 69   $show_slide_page = 'false';
57   if($this->hasData("show_slide_page")) { 70   if($this->hasData("show_slide_page")) {
58     $show_slide_page = $this->getData("show_slide_page") > 0 ? 'true': 'false'; 71     $show_slide_page = $this->getData("show_slide_page") > 0 ? 'true': 'false';
59   } 72   }
60   $enable_autoplay = 'false'; 73   $enable_autoplay = 'false';
61   if($this->hasData("enable_autoplay")) { 74   if($this->hasData("enable_autoplay")) {
62     $enable_autoplay = $this->getData("enable_autoplay") > 0 ? 'true': 'false'; 75     $enable_autoplay = $this->getData("enable_autoplay") > 0 ? 'true': 'false';
63   } 76   }
64   $enable_slide_loop = 'false'; 77   $enable_slide_loop = 'false';
65   if($this->hasData("enable_slide_loop")) { 78   if($this->hasData("enable_slide_loop")) {
66     $enable_slide_loop = $this->getData("enable_slide_loop") > 0 ? 'true': 'false'; 79     $enable_slide_loop = $this->getData("enable_slide_loop") > 0 ? 'true': 'false';
67   } 80   }
68   $desktop_slide_columns = '4'; 81   $desktop_slide_columns = '4';
69   if($this->hasData("desktop_slide_columns")) { 82   if($this->hasData("desktop_slide_columns")) {
70     $desktop_slide_columns = $this->getData("desktop_slide_columns"); 83     $desktop_slide_columns = $this->getData("desktop_slide_columns");
71   } 84   }
72   $tablet_slide_columns = '3'; 85   $tablet_slide_columns = '3';
73   if($this->hasData("tablet_slide_columns")) { 86   if($this->hasData("tablet_slide_columns")) {
74     $tablet_slide_columns = $this->getData("tablet_slide_columns"); 87     $tablet_slide_columns = $this->getData("tablet_slide_columns");
75   } 88   }
76   $mobile_slide_columns = '3'; 89   $mobile_slide_columns = '3';
77   if($this->hasData("mobile_slide_columns")) { 90   if($this->hasData("mobile_slide_columns")) {
78     $mobile_slide_columns = $this->getData("mobile_slide_columns"); 91     $mobile_slide_columns = $this->getData("mobile_slide_columns");
79   } 92   }
80  93 
81   $id = $block->getData('page_var_name') . uniqid('', false); 94   $id = $block->getData('page_var_name') . uniqid('', false);
82 } 95 }
83 ?> 96 ?>
84 <?php if (!$exist): ?> 97 <?php if (!$exist): ?>
85     <div class="message info empty"><div><?php echo __('We can\'t find products matching the selection.') ?></div></div> 98     <div class="message info empty"><div><?php echo __('We can\'t find products matching the selection.') ?></div></div>
86 <?php else: ?> 99 <?php else: ?>
87     <?php 100     <?php
88     $viewMode = 'grid'; 101     $viewMode = 'grid';
89     $image = 'category_page_grid'; 102     $image = 'category_page_grid';
90     $hover_image = 'category_page_grid-hover'; 103     $hover_image = 'category_page_grid-hover';
91     $showDescription = false; 104     $showDescription = false;
92     $templateType = \Magento\Catalog\Block\Product\ReviewRendererInterface::SHORT_VIEW; 105     $templateType = \Magento\Catalog\Block\Product\ReviewRendererInterface::SHORT_VIEW;
93     ?> 106     ?>
94     <div id="porto-filter-products-<?= $id ?>" class="porto-products"> 107     <div id="porto-filter-products-<?= $id ?>" class="porto-products">
95       <div class="slider-wrapper"> 108       <div class="slider-wrapper">
96         <div class="products wrapper <?php echo $viewMode; ?> products-<?php echo $viewMode; ?> <?php if($product_type == 2): ?>no-padding divider-line<?php endif; ?> <?php if($product_type == 5 || $product_type == 6 || $product_type == 7 || $product_type == 8): ?>no-padding<?php endif; ?> <?php if($product_type == 6): ?>divider-line<?php endif; ?>"> 109         <div class="products wrapper <?php echo $viewMode; ?> products-<?php echo $viewMode; ?> <?php if($product_type == 2): ?>no-padding divider-line<?php endif; ?> <?php if($product_type == 5 || $product_type == 6 || $product_type == 7 || $product_type == 8): ?>no-padding<?php endif; ?> <?php if($product_type == 6): ?>divider-line<?php endif; ?>">
97             <?php $iterator = 1; ?> 110             <?php $iterator = 1; ?>
98             <div class="filterproducts products products-slider list items product-items owl-carousel <?php echo $extra_class;?>"> 111             <div class="filterproducts products products-slider list items product-items owl-carousel <?php echo $extra_class;?>">
99                 <?php /** @var $_product \Magento\Catalog\Model\Product */ ?> 112                 <?php /** @var $_product \Magento\Catalog\Model\Product */ ?>
100                 <?php foreach ($_productCollection as $_product): ?> 113                 <?php foreach ($_productCollection as $_product): ?>
101                     <?php echo($iterator++ == 1) ? '<div class="item product product-item">' : '</div><div class="item product product-item">' ?> 114                     <?php echo($iterator++ == 1) ? '<div class="item product product-item">' : '</div><div class="item product product-item">' ?>
102                     <div class="product-item-info type<?php echo $product_type; ?>
" data-container="product-grid">
 115                     <?php
    116                       $newType = array("13", "14", "15", "16", "17", "18", "19", "20");
    117                       $_type_class = '';
    118                       $_content_pos1 = '';
    119                       if(in_array($product_type, $newType)) {
    120                         $_content_pos1 = ' text-'.$_content_pos1;
    121                         $_type_class = ' product-type-advanced';
    122                         if($product_type == '15'){
    123                           $_type_class = ' product-type-advanced effect-ovdefault';
    124                           if($_button_action == 'top'){
    125                             $_content_pos1 = ' text-center';
    126                           }
    127                           if($_button_action == 'hide'){
    128                             $_content_pos1 = ' text-center hide-actions';
    129                           }
    130                         }
    131                         if($product_type == '16'){
    132                           $_type_class = ' product-type-advanced effect-hddf'.' box-'.$_block_pos;
    133                           $_content_pos1 = ' text-'.$_content_pos3;
    134                         }
    135                         if($product_type == '18'){
    136                           $_type_class = ' product-type-advanced effect-detailimg';
    137                           $_content_pos1 = ' text-left';
    138                           if($_content_pos2 == 'top'){
    139                             $_type_class = ' product-type-advanced effect-detailimg actions-bottom';
    140                           }
    141                           if($_content_pos2 == 'center'){
    142                             $_content_pos1 = ' text-center';
    143                             $_type_class = ' product-type-advanced effect-detailimg actions-center';
    144                           }
    145                           if($_content_pos2 == 'bottom'){
    146                             $_type_class = ' product-type-advanced effect-detailimg actions-top';
    147                           }
    148                         }
    149                         if($product_type == '19'){
    150                           $_type_class = ' product-type-advanced effect-cartlink';
    151                           if($_link_pos == 'image') {
    152                             $_type_class = ' product-type-advanced effect-cartlink cartlink-image';
    153                           }
    154                           $_content_pos1 = ' text-left';
    155                         }
    156                         if($product_type == '20'){
    157                           $_content_pos1 = ' text-center';
    158                           if($_box_style == 'box_shadow') {
    159                             $_type_class .= ' product-type-advanced effect-bheshadow';
    160                           }
    161                           if($_box_style == 'box_full') {
    162                             $_type_class .= ' product-type-advanced effect-bhesfd';
    163                             $_content_pos1 = ' text-left';
    164                           }
    165                           if($_box_style == 'box_border') {
    166                             $_type_class .= ' product-type-advanced effect-bheborder';
    167                           }
    168                           if($_box_style == 'box_border_padding') {
    169                             $_type_class .= ' product-type-advanced effect-bhebrspace';
    170                           }
    171                         }
    172                       }
    173                     ?>
    174                     <div class="product-item-info type<?php echo $product_type; ?><?= $_content_pos1;?> porto-tb-item type-product has-post-thumbnail product-type-simple" data-container="product-grid">
    175                       <div class="porto-section<?=$_type_class?> p-0">
    176                         <?php if($product_type == '20' && $_box_style == 'box_full'):?><div class="content-shadow"></div><?php endif;?>
103                         <?php // Product Image ?> 177                         <?php // Product Image ?>
104                         <div class="product photo product-item-photo"> 178                         <div class="product photo product-item-photo<?php if(in_array($product_type, $newType)):?> porto-tb-featured-image tb-image-type-hover<?php endif;?> product-image">
    179                           <div class="porto-tb-featured-image tb-image-type-hover">
105                             <a href="<?php echo $_product->getProductUrl() ?>" tabindex="-1"> 180                             <a href="<?php echo $_product->getProductUrl() ?>" tabindex="-1">
106                             <?php 181                             <?php
107                                 if($aspect_ratio) 182                                 if($aspect_ratio)
108                                     $productImage = $_imagehelper->init($_product, $image)->constrainOnly(FALSE)->keepAspectRatio(TRUE)->keepFrame(FALSE)->resize($image_width); 183                                     $productImage = $_imagehelper->init($_product, $image)->constrainOnly(FALSE)->keepAspectRatio(TRUE)->keepFrame(FALSE)->resize($image_width);
109                                 else 184                                 else
110                                     $productImage = $_imagehelper->init($_product, $image)->resize($image_width, $image_height); 185                                     $productImage = $_imagehelper->init($_product, $image)->resize($image_width, $image_height);
111                                 $productImageUrl = $productImage->getUrl(); 186                                 $productImageUrl = $productImage->getUrl();
112                             ?> 187                             ?>
113                                 <img class="product-image-photo default_image <?php if(!$_lazyload): ?>porto-lazyload<?php endif;?>" <?php if(!$_lazyload): ?>data-<?php endif; ?>src="<?php echo $productImageUrl; ?>" width="<?php echo $image_width; ?>" height="<?php echo $image_height; ?>" alt="<?php //echo $productImage->getLabel();?>"/> 188                                 <img class="product-image-photo default_image <?php if(!$_lazyload): ?>porto-lazyload<?php endif;?>" <?php if(!$_lazyload): ?>data-<?php endif; ?>src="<?php echo $productImageUrl; ?>" width="<?php echo $image_width; ?>" height="<?php echo $image_height; ?>" alt="<?php //echo $productImage->getLabel();?>"/>
114                             <?php if($_category_config['alternative_image']): ?> 189                             <?php if($_category_config['alternative_image']): ?>
115                             <?php 190                             <?php
116                                 if($aspect_ratio) 191                                 if($aspect_ratio)
117                                     $productHoverImage = $_imagehelper->init($_product, $hover_image)->constrainOnly(FALSE)->keepAspectRatio(TRUE)->keepFrame(FALSE)->resize($image_width); 192                                     $productHoverImage = $_imagehelper->init($_product, $hover_image)->constrainOnly(FALSE)->keepAspectRatio(TRUE)->keepFrame(FALSE)->resize($image_width);
118                                 else 193                                 else
119                                     $productHoverImage = $_imagehelper->init($_product, $hover_image)->resize($image_width, $image_height); 194                                     $productHoverImage = $_imagehelper->init($_product, $hover_image)->resize($image_width, $image_height);
120                                 $productHoverImageUrl = $productHoverImage->getUrl(); 195                                 $productHoverImageUrl = $productHoverImage->getUrl();
121                             ?> 196                             ?>
122                                 <?php if($productImageUrl != str_replace("/thumbnail/","/small_image/",$productHoverImageUrl)): ?> 197                                 <?php if($productImageUrl != str_replace("/thumbnail/","/small_image/",$productHoverImageUrl)): ?>
123                                 <img class="product-image-photo hover_image" src="<?php echo $productHoverImageUrl; ?>" alt="<?php //echo $productHoverImage->getLabel();?>"/> 198                                 <img class="product-image-photo hover_image" src="<?php echo $productHoverImageUrl; ?>" alt="<?php //echo $productHoverImage->getLabel();?>"/>
124                                 <?php endif; ?> 199                                 <?php endif; ?>
125                             <?php endif; ?> 200                             <?php endif; ?>
126                             </a> 201                             </a>
127                             <?php 202                             <?php
128                                 $product_label = ""; 203                                 $product_label = "";
129                                 if($_product_label_config['sale_label']) { 204                                 if($_product_label_config['sale_label']) {
130                                     if ($percentage = $_portohelper->getPercentage($_product)) { 205                                     if ($percentage = $_portohelper->getPercentage($_product)) {
131                                         if($_product_label_config['sale_label_percent']) { 206                                         if($_product_label_config['sale_label_percent']) {
132                                             $product_label .= '<div class="product-label sale-label">'.$percentage.'%'.'</div>'; 207                                             $product_label .= '<div class="product-label sale-label">'.$percentage.'%'.'</div>';
133                                         } else { 208                                         } else {
134                                             $product_label .= '<div class="product-label sale-label">'.$_product_label_config['sale_label_text'].'</div>'; 209                                             $product_label .= '<div class="product-label sale-label">'.$_product_label_config['sale_label_text'].'</div>';
135                                         } 210                                         }
136                                     } 211                                     }
137                                 } 212                                 }
138                                 if($_product_label_config['new_label']) { 213                                 if($_product_label_config['new_label']) {
139                                     $now = date("Y-m-d"); 214                                     $now = date("Y-m-d");
140                                     $newsFrom= substr($_product->getData('news_from_date')?$_product->getData('news_from_date'):'',0,10); 215                                     $newsFrom= substr($_product->getData('news_from_date')?$_product->getData('news_from_date'):'',0,10);
141                                     $newsTo=  substr($_product->getData('news_to_date')?$_product->getData('news_to_date'):'',0,10); 216                                     $newsTo=  substr($_product->getData('news_to_date')?$_product->getData('news_to_date'):'',0,10);
142  217 
143                                     if ($newsTo != '' || $newsFrom != ''){ 218                                     if ($newsTo != '' || $newsFrom != ''){
144                                         if (($newsTo != '' && $newsFrom != '' && $now>=$newsFrom && $now<=$newsTo) || ($newsTo == '' && $now >=$newsFrom) || ($newsFrom == '' && $now<=$newsTo)) { 219                                         if (($newsTo != '' && $newsFrom != '' && $now>=$newsFrom && $now<=$newsTo) || ($newsTo == '' && $now >=$newsFrom) || ($newsFrom == '' && $now<=$newsTo)) {
145                                             $product_label .= '<div class="product-label new-label">'.$_product_label_config['new_label_text'].'</div>'; 220                                             $product_label .= '<div class="product-label new-label">'.$_product_label_config['new_label_text'].'</div>';
146                                         } 221                                         }
147                                     } 222                                     }
148                                 } 223                                 }
149                                 if($product_label) 224                                 if($product_label)
150                                     echo '<div class="product-labels">'.$product_label.'</div>'; 225                                     echo '<div class="product-labels">'.$product_label.'</div>';
151                             ?> 226                             ?>
152                             <?php if($product_type == 3 || $product_type == 5 || 
$product_type == 6 || $product_type == 7 || $product_type == 8 || $product_type == 9 || $product_type == 11): ?>
 227                             <?php
153                             <div class="product-item-inner"> 228                             $_show_actions_top = false;
154                                 <div class="product actions product-item-actions"> 229                             $_product_inner_class = '';
    230                             if(in_array($product_type, ['3','5','6','7','8','9','11','13','14','15','16','17','18','19','20'])) {
    231                               $_show_actions_top = true;
    232                               if($product_type == 14 && $_button_pos == 'outside'){
    233                                 $_show_actions_top = false;
    234                               }
    235                               if($product_type >= 13){
    236                                 $_product_inner_class = ' tb-hover-content with-link';
    237                               }
    238 
    239                               
if($product_type == 13 || ($product_type == 15 && $_button_action == 'top') || $product_type == 16 || $product_type == 17 || $product_type == 19)
 {
    240                                 $_product_inner_class .= ' css-bottom-iconcart icon-absolute';
    241                               }
    242                               if($product_type == 14 && $_icon_only1){
    243                                 $_product_inner_class .= ' show-cart-icon';
    244                               }
    245                               if($product_type == 14 && $_button_pos != 'outside'){
    246                                 $_product_inner_class .= ' button-pos-'.$_button_pos;
    247                               }
    248                               if($product_type == 15 && $_icon_only2 && $_button_action != 'top'){
    249                                 $_product_inner_class .= ' show-cart-icon';
    250                               }
    251                               if($product_type == 15 && $_button_action != 'top') {
    252                                 $_product_inner_class .= ' button-pos-center';
    253                               }
    254                               if($product_type == 18) {
    255                                 $_product_inner_class .= ' icon-absolute show-cart-icon';
    256                               }
    257                               if($product_type == 20 && $_box_style != 'box_full') {
    258                                 $_product_inner_class .= ' css-bottom-iconcart icon-absolute';
    259                               }
    260                               if($product_type == 20 && $_box_style == 'box_full'){
    261                                 $_show_actions_top = false;
    262                               }
    263                             }
    264                             if($_show_actions_top): ?>
    265                             <div class="product-item-inner<?= $_product_inner_class;?>">
    266                               <?php if(in_array($product_type, $newType)):?>
    267                               <a aria-label="post content" href="<?php echo $_product->getProductUrl() ?>" class="porto-tb-link"></a>
    268                               <?php endif;?>
    269                               <?php if($product_type == 15 || $product_type == 16 || $product_type == 18):?>
    270                                 <?php if(($product_type == 15 && $_button_action == 'center') || ($product_type == 18 && $_content_pos2 == 'default') || ($product_type == 18 && $_content_pos2 == 'center')):?>
    271                                 <div class="porto-section content-top">
    272                                   <?php $_productNameStripped =  $block->stripTags($_product->getName(), null, true); ?>
    273                                   <strong class="product name product-item-name">
    274                                       <a class="product-item-link"
    275                                          href="<?php echo $_product->getProductUrl() ?>">
    276                                           <?php echo $_helper->productAttribute($_product, $_product->getName(), 'name'); ?>
    277                                       </a>
    278                                   </strong>
    279                                   <?php if($_category_config['rating_star']): ?>
    280                                   <?php
    281                                       $review_html = $block->getReviewsSummaryHtml($_product, $templateType);
    282                                   ?>
    283                                   <?php if($review_html): ?>
    284                                       <?php echo $block->getReviewsSummaryHtml($_product, $templateType); ?>
    285                                   <?php else: ?>
    286                                   <div class="product-reviews-summary short">
    287                                       <div class="rating-summary">
    288                                           <span class="label"><span>Rating:</span></span>
    289                                           <div class="rating-result" title="0%">
    290                                               <span style="width:0"><span>0%</span></span>
    291                                           </div>
    292                                       </div>
    293                                   </div>
    294                                   <?php endif; ?>
    295                                   <?php endif; ?>
    296                                 </div>
    297                                 <?php endif; ?>
    298                                 <div class="product details product-item-details porto-section<?php if($_button_action == 'top' || $_button_action == 'hide' || $product_type == 16):?> product-content<?php endif;?><?php if($product_type == 15 && $_button_action == 'center'):?> content-bottom<?php endif;?><?php if($product_type == 16 && $_block_pos == 'full'):?> d-flex justify-content-center flex-column<?php endif;?>">
    299                                   <?php if($_button_action == 'top' || $_button_action == 'hide' || $product_type == 16  || ($product_type == 18 && $_content_pos2 == 'top')  || ($product_type == 18 && $_content_pos2 == 'bottom')):?>
    300                                   <?php $_productNameStripped = $block->stripTags($_product->getName(), null, true); ?>
    301                                   <strong class="product name product-item-name">
    302                                       <a class="product-item-link"
    303                                          href="<?php echo $_product->getProductUrl() ?>">
    304                                           <?php echo $_helper->productAttribute($_product, $_product->getName(), 'name'); ?>
    305                                       </a>
    306                                   </strong>
    307                                   <?php if($_category_config['rating_star']): ?>
    308                                   <?php
    309                                       $review_html = $block->getReviewsSummaryHtml($_product, $templateType);
    310                                   ?>
    311                                   <?php if($review_html): ?>
    312                                       <?php echo $block->getReviewsSummaryHtml($_product, $templateType); ?>
    313                                   <?php else: ?>
    314                                   <div class="product-reviews-summary short">
    315                                       <div class="rating-summary">
    316                                           <span class="label"><span>Rating:</span></span>
    317                                           <div class="rating-result" title="0%">
    318                                               <span style="width:0"><span>0%</span></span>
    319                                           </div>
    320                                       </div>
    321                                   </div>
    322                                   <?php endif; ?>
    323                                   <?php endif; ?>
    324                                   <?php endif;?>
    325 
    326                                   <?php if($_category_config['product_price']): ?>
    327                                   <?php echo $block->getProductPrice($_product) ?>
    328                                   <?php endif; ?>
    329                                   <?php echo $block->getProductDetailsHtml($_product); ?>
    330                                   <?php if($product_type == 16):?>
155                                     <div class="actions-primary"> 331                                     <div class="actions-primary">
156                                         <?php if ($_product->isSaleable()): ?> 332                                         <?php if ($_product->isSaleable()): ?>
157                                             <?php $postParams = $block->getAddToCartPostParams($_product); ?> 333                                           <?php $postParams = $block->getAddToCartPostParams($_product); ?>
158                                             <form data-role="tocart-form" action="<?php echo $postParams['action']; ?>" method="post"> 334                                           <form data-role="tocart-form" action="<?php echo $postParams['action']; ?>" method="post">
159                                                 <input type="hidden" name="product" value="<?php echo $postParams['data']['product']; ?>"> 335                                               <input type="hidden" name="product" value="<?php echo $postParams['data']['product']; ?>">
160                                                 <input type="hidden" name="<?php echo Action::PARAM_NAME_URL_ENCODED; ?>" value="<?php echo $postParams['data'][Action::PARAM_NAME_URL_ENCODED]; ?>"> 336                                               <input type="hidden" name="<?php echo Action::PARAM_NAME_URL_ENCODED; ?>" value="<?php echo $postParams['data'][Action::PARAM_NAME_URL_ENCODED]; ?>">
161     
162                                                 <?php echo $block->getBlockHtml('formkey')?> 337                                               <?php echo $block->getBlockHtml('formkey')?>
163                                                 <button type="submit" 338                                               <button type="submit"
164                                                         title="<?php echo $block->escapeHtml(__('Add to Cart')); ?>" 339                                                       title="<?php echo $block->escapeHtml(__('Add to Cart')); ?>"
165                                                         class="action tocart primary"> 340                                                       class="action tocart primary">
166                                                     <span><?php echo __('Add to Cart') ?></span> 341                                                   <span><?php echo __('Add to Cart') ?></span>
167                                                 </button> 342                                               </button>
168                                             </form> 343                                           </form>
169                                         <?php else: ?> 344                                       <?php else: ?>
170                                             <?php if ($_product->getIsSalable()): ?> 345                                           <?php if ($_product->getIsSalable()): ?>
171                                                 <div class="stock available"><span><?php echo __('In stock') ?></span></div> 346                                               <div class="stock available"><span><?php echo __('In stock') ?></span></div>
172                                             <?php else: ?> 347                                           <?php else: ?>
173                                                 <div class="stock unavailable"><span><?php echo __('Out of stock') ?></span></div> 348                                               <div class="stock unavailable"><span><?php echo __('Out of stock') ?></span></div>
174                                             <?php endif; ?> 349                                           <?php endif; ?>
175                                         <?php endif; ?> 350                                       <?php endif; ?>
176                                     </div> 351                                     </div>
    352                                   <?php endif;?>
    353                                 </div>
    354                               <?php endif; ?>
    355                               <div class="product actions product-item-actions<?php if($product_type == 14 || ($product_type == 15 && $_button_action != 'top') || $product_type == 16 || $product_type == 17):?> d-flex align-items-center justify-content-center<?php endif;?><?php if($product_type == 17 && $_quantity_pos == 'image_center'):?> actions-center<?php endif;?>">
    356                                 <?php
    357                                   $c_show_cart = false;
    358                                   if($product_type != 16){
    359                                     $c_show_cart = true;
    360                                   }
    361                                   if($product_type == 17 && ($_quantity_pos =='below' || $_quantity_pos =='above')) {
    362                                     $c_show_cart = false;
    363                                   }
    364                                   if($product_type == 19 && $_link_pos != 'image') {
    365                                     $c_show_cart = false;
    366                                   }
    367                                 ?>
    368                                 <?php if($c_show_cart):?>
    369                                 <div class="actions-primary">
    370                                     <?php if ($_product->isSaleable()): ?>
    371                                         <?php $postParams = $block->getAddToCartPostParams($_product); ?>
    372                                         <form data-role="tocart-form" action="<?php echo $postParams['action']; ?>" method="post" class="d-flex flex-column flex-sm-row">
    373                                             <input type="hidden" name="product" value="<?php echo $postParams['data']['product']; ?>">
    374                                             <input type="hidden" name="<?php echo Action::PARAM_NAME_URL_ENCODED; ?>" value="<?php echo $postParams['data'][Action::PARAM_NAME_URL_ENCODED]; ?>">
    375                                             <?php if($product_type == 17 && ($_quantity_pos == 'image_bottom' || $_quantity_pos == 'image_center')):?>
    376                                                 <div class="qty-box">
    377                                                     <a href="javascript:void(0)" class="qtyminus"><i class="porto-icon-minus"></i></a>
    378                                                     <input type="text" name="qty" id="qty" maxlength="12" value="<?php echo ($this->getMinimalQty($_product)?$this->getMinimalQty($_product):1) ?>" title="<?php /* @escapeNotVerified */ echo __('Qty') ?>" class="input-text qty" data-validate="<?php echo $block->escapeHtml(json_encode($block->getQuantityValidators())) ?>"/>
    379                                                     <a href="javascript:void(0)" class="qtyplus"><i class="porto-icon-plus"></i></a>
    380                                                 </div>
    381                                             <?php endif;?>
    382                                             <?php echo $block->getBlockHtml('formkey')?>
    383                                             <button type="submit"
    384                                                     title="<?php echo $block->escapeHtml(__('Add to Cart')); ?>"
    385                                                     class="action tocart primary">
    386                                                 <span><?php echo __('Add to Cart') ?></span>
    387                                             </button>
    388                                         </form>
    389                                     <?php else: ?>
    390                                         <?php if ($_product->getIsSalable()): ?>
    391                                             <div class="stock available"><span><?php echo __('In stock') ?></span></div>
    392                                         <?php else: ?>
    393                                             <div class="stock unavailable"><span><?php echo __('Out of stock') ?></span></div>
    394                                         <?php endif; ?>
    395                                     <?php endif; ?>
    396                                 </div>
    397                                 <?php endif; ?>
177                                     <?php if ($block->getMode() == 'grid'): ?> 398                                 <?php if ($block->getMode() == 'grid'): ?>
178                                     <?php if ($this->helper('Magento\Wishlist\Helper\Data')->isAllow()): ?> 399                                 <?php if ($this->helper('Magento\Wishlist\Helper\Data')->isAllow()): ?>
179                                         <a href="#" 400                                     <a href="#"
180                                            class="action towishlist actions-secondary" 401                                        class="action towishlist actions-secondary"
181                                            title="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>" 402                                        title="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>"
182                                            aria-label="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>" 403                                        aria-label="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>"
183                                            data-post='<?php echo $block->getAddToWishlistParams($_product); ?>' 404                                        data-post='<?php echo $block->getAddToWishlistParams($_product); ?>'
184                                            data-action="add-to-wishlist" 405                                        data-action="add-to-wishlist"
185                                            role="button"> 406                                        role="button">
186                                             <span><?php echo __('Add to Wish List') ?></span> 407                                         <span><?php echo __('Add to Wish List') ?></span>
187                                         </a> 408                                     </a>
188                                     <?php endif; ?> 409                                 <?php endif; ?>
189                                     <?php endif; ?> 410                                 <?php endif; ?>
190                                     <?php if($_category_config['addtocompare']): ?> 411                                 <?php if($_category_config['addtocompare']): ?>
191                                     <?php 412                                 <?php
192                                     $compareHelper = $this->helper('Magento\Catalog\Helper\Product\Compare'); 413                                 $compareHelper = $this->helper('Magento\Catalog\Helper\Product\Compare');
193                                     ?> 414                                 ?>
194                                     <a href="#" 415                                 <a href="#"
195                                        class="action tocompare actions-secondary" 416                                    class="action tocompare actions-secondary"
196                                        title="<?php echo $block->escapeHtml(__('Add to Compare')); ?>" 417                                    title="<?php echo $block->escapeHtml(__('Add to Compare')); ?>"
197                                        aria-label="<?php echo $block->escapeHtml(__('Add to Compare')); ?>" 418                                    aria-label="<?php echo $block->escapeHtml(__('Add to Compare')); ?>"
198                                        data-post='<?php echo $compareHelper->getPostDataParams($_product); ?>' 419                                    data-post='<?php echo $compareHelper->getPostDataParams($_product); ?>'
199                                        role="button"> 420                                    role="button">
200                                         <span><?php echo __('Add to Compare') ?></span> 421                                     <span><?php echo __('Add to Compare') ?></span>
201                                     </a> 422                                 </a>
202                                     <?php endif; ?> 423                                 <?php endif; ?>
203                                 </div> 424                               </div>
204                             </div> 425                             </div>
205                             <?php endif; ?> 426                             <?php endif; ?>
    427                             <?php if($product_type != 13 && $product_type != 14 && $product_type != 17 && $product_type != 18 && $product_type != 20): ?>
206                             <!-- Dailydeal Product data --> 428                             <!-- Dailydeal Product data -->
207                             <?php if($_dailydealhelper->isDealProduct($_product->getId())) : ?> 429                             <?php if($_dailydealhelper->isDealProduct($_product->getId())) : ?>
208                             <?php $unique_id = $this->getData("name")."_".rtrim(base64_encode(md5(microtime())),"="); ?> 430                             <?php $unique_id = $this->getData("name")."_".rtrim(base64_encode(md5(microtime())),"="); ?>
209                             <input type="hidden" id="todate_<?php echo $unique_id; ?>" value="<?php echo $_dailydealhelper->getDailydealToDate($_product->getSku()); ?>" > 431                             <input type="hidden" id="todate_<?php echo $unique_id; ?>" value="<?php echo $_dailydealhelper->getDailydealToDate($_product->getSku()); ?>" >
210                             <input type="hidden" id="fromdate_<?php echo $unique_id; ?>" value="<?php echo $_dailydealhelper->getDailydealFromDate($_product->getSku()); ?>"> 432                             <input type="hidden" id="fromdate_<?php echo $unique_id; ?>" value="<?php echo $_dailydealhelper->getDailydealFromDate($_product->getSku()); ?>">
211                             <div class="sw-dailydeal-wrapper" style="display:none;" data-unique-id="<?php echo $unique_id; ?>"> 433                             <div class="sw-dailydeal-wrapper" style="display:none;" data-unique-id="<?php echo $unique_id; ?>">
212                                 <div class="sw-dailydeal"> 434                                 <div class="sw-dailydeal">
213                                     <p id="expired_<?php echo $unique_id; ?>"></p> 435                                     <p id="expired_<?php echo $unique_id; ?>"></p>
214                                     <div class="countdowncontainer countdowncontainer_<?php echo $unique_id; ?>" style="display:none;"> 436                                     <div class="countdowncontainer countdowncontainer_<?php echo $unique_id; ?>" style="display:none;">
215                                         <span class="dailydeal-label"> 437                                         <span class="dailydeal-label">
216                                             <?php echo __('Ends In:'); ?> 438                                             <?php echo __('Ends In:'); ?>
217                                         </span> 439                                         </span>
218                                         <span class="number-wrapper"> 440                                         <span class="number-wrapper">
219                                             <div class="line"></div> 441                                             <div class="line"></div>
220                                             <span class="number day"><p id="countdown_days_<?php echo $unique_id; ?>">00</p></span> 442                                             <span class="number day"><p id="countdown_days_<?php echo $unique_id; ?>">00</p></span>
221                                             <div class="caption"><?php echo __('Day(s), '); ?></div> 443                                             <div class="caption"><?php echo __('Day(s), '); ?></div>
222                                         </span> 444                                         </span>
223  445 
224                                         <span class="number-wrapper"> 446                                         <span class="number-wrapper">
225                                             <div class="line"></div> 447                                             <div class="line"></div>
226                                             <span class="number hour"><p id="countdown_hours_<?php echo $unique_id; ?>">00</p></span> 448                                             <span class="number hour"><p id="countdown_hours_<?php echo $unique_id; ?>">00</p></span>
227                                             <div class="caption">:</div> 449                                             <div class="caption">:</div>
228                                         </span> 450                                         </span>
229  451 
230                                         <span class="number-wrapper"> 452                                         <span class="number-wrapper">
231                                             <div class="line"></div> 453                                             <div class="line"></div>
232                                             <span class="number min"><p id="countdown_minutes_<?php echo $unique_id; ?>">00</p></span> 454                                             <span class="number min"><p id="countdown_minutes_<?php echo $unique_id; ?>">00</p></span>
233                                             <div class="caption">:</div> 455                                             <div class="caption">:</div>
234                                         </span> 456                                         </span>
235  457 
236                                         <span class="number-wrapper"> 458                                         <span class="number-wrapper">
237                                             <div class="line"></div> 459                                             <div class="line"></div>
238                                             <span class="number sec"><p id="countdown_seconds_<?php echo $unique_id; ?>">00</p></span> 460                                             <span class="number sec"><p id="countdown_seconds_<?php echo $unique_id; ?>">00</p></span>
239                                             <div class="caption"></div> 461                                             <div class="caption"></div>
240                                         </span> 462                                         </span>
241                                     </div> 463                                     </div>
242                                 </div> 464                                 </div>
243                             </div> 465                             </div>
244                             <?php endif; ?> 466                             <?php endif; ?>
245                             <!-- Dailydeal Product End --> 467                             <!-- Dailydeal Product End -->
    468                             <?php endif;?>
    469                           </div>
    470                         </div>
    471                         <?php if($product_type != '15' && $product_type != 16  && $product_type != '18'): ?>
    472                         <div class="product details product-item-details porto-section product-content<?php if($product_type == '17' && $_quantity_pos =='above'):?> qty-above d-flex flex-column align-items-center<?php endif;?><?php if($product_type == '19' && ($_link_pos == 'top' || $_link_pos == 'hidden')){?> show-cartlink-top<?php }?>">
    473                           <?php if($product_type == '13' || $product_type == '14' || $product_type == '17' || $product_type == '20'): ?>
    474                             <!-- Dailydeal Product data -->
    475                             <?php if($_dailydealhelper->isDealProduct($_product->getId())) : ?>
    476                             <?php $unique_id = rtrim(base64_encode(md5(microtime())),"="); ?>
    477                             <input type="hidden" id="todate_<?php echo $unique_id; ?>" value="<?php echo $_dailydealhelper->getDailydealToDate($_product->getSku()); ?>" >
    478                             <input type="hidden" id="fromdate_<?php echo $unique_id; ?>" value="<?php echo $_dailydealhelper->getDailydealFromDate($_product->getSku()); ?>">
    479                             <div class="sw-dailydeal-wrapper product-type-countdown2" style="display:none;" data-unique-id="<?php echo $unique_id; ?>">
    480                                 <div class="sw-dailydeal">
    481                                     <p id="expired_<?php echo $unique_id; ?>"></p>
    482                                     <div class="countdowncontainer countdowncontainer_<?php echo $unique_id; ?>" style="display:none;">
    483                                         <span class="number-wrapper">
    484                                           <div class="line"></div>
    485                                           <span class="number day"><p id="countdown_days_<?php echo $unique_id; ?>">00</p></span>
    486                                           <div class="caption"><?php echo __('Days'); ?></div>
    487                                         </span>
    488                                         <span class="number-wrapper">
    489                                           <div class="line"></div>
    490                                           <span class="number hour"><p id="countdown_hours_<?php echo $unique_id; ?>">00</p></span>
    491                                           <div class="caption"><?php echo __('Hours'); ?></div>
    492                                         </span>
    493                                         <span class="number-wrapper">
    494                                           <div class="line"></div>
    495                                           <span class="number min"><p id="countdown_minutes_<?php echo $unique_id; ?>">00</p></span>
    496                                           <div class="caption"><?php echo __('Min'); ?></div>
    497                                         </span>
    498                                         <span class="number-wrapper">
    499                                           <div class="line"></div>
    500                                           <span class="number sec"><p id="countdown_seconds_<?php echo $unique_id; ?>">00</p></span>
    501                                           <div class="caption"><?php echo __('Sec'); ?></div>
    502                                         </span>
    503                                     </div>
    504                                 </div>
246                         </div> 505                             </div>
247                         <div class="product details product-item-details"> 506                             <?php endif; ?>
    507                             <!-- Dailydeal Product End -->
    508                           <?php endif;?>
248                             <?php 509                           <?php
249                                 $_productNameStripped = $block->stripTags($_product->getName(), null, true); 510                               $_productNameStripped = $block->stripTags($_product->getName(), null, true);
250                             ?> 511                           ?>
    512                           <?php if($product_type == '13' || $product_type == '14' || $product_type == '19'  || $product_type == '20'): ?>
    513                             <?php echo $block->getProductDetailsHtml($_product); ?>
    514                           <?php endif;?>
251                             <strong class="product name product-item-name"> 515                           <strong class="product name product-item-name">
252                                 <a class="product-item-link" 516                               <a class="product-item-link"
253                                    href="<?php echo $_product->getProductUrl() ?>"> 517                                  href="<?php echo $_product->getProductUrl() ?>">
254                                     <?php echo $_helper->productAttribute($_product, $_product->getName(), 'name'); ?> 518                                   <?php echo $_helper->productAttribute($_product, $_product->getName(), 'name'); ?>
255                                 </a> 519                               </a>
256                             </strong> 520                           </strong>
257                             <?php //$_category_config['rating_star'] = "";  //disabled at the moment ?> 521                           <?php //$_category_config['rating_star'] = "";  //disabled at the moment ?>
258                             <?php if($_category_config['rating_star']): ?> 522                           <?php if($_category_config['rating_star']): ?>
259                             <?php 523                           <?php
260                                 $review_html = $block->getReviewsSummaryHtml($_product, $templateType); 524                               $review_html = $block->getReviewsSummaryHtml($_product, $templateType);
261                             ?> 525                           ?>
262                             <?php if($review_html): ?> 526                           <?php if($review_html): ?>
263                                 <?php echo $block->getReviewsSummaryHtml($_product, $templateType); ?> 527                               <?php echo $block->getReviewsSummaryHtml($_product, $templateType); ?>
264                             <?php else: ?> 528                           <?php else: ?>
265                             <div class="product-reviews-summary short"> 529                           <div class="product-reviews-summary short">
266                                 <div class="rating-summary"> 530                               <div class="rating-summary">
267                                     <span class="label"><span>Rating:</span></span> 531                                   <span class="label"><span>Rating:</span></span>
268                                     <div class="rating-result" title="0%"> 532                                   <div class="rating-result" title="0%">
269                                         <span style="width:0"><span>0%</span></span> 533                                       <span style="width:0"><span>0%</span></span>
270                                     </div> 534                                   </div>
271                                 </div> 535                               </div>
272                             </div> 536                           </div>
273                             <?php endif; ?> 537                           <?php endif; ?>
274                             <?php endif; ?> 538                           <?php endif; ?>
275  539 
276                             <?php if ($showDescription):?> 540                           <?php if ($showDescription):?>
277                                 <div class="product description product-item-description"> 541                               <div class="product description product-item-description">
278                                     <?php echo $_helper->productAttribute($_product, $_product->getShortDescription(), 'short_description') ?> 542                                   <?php echo $_helper->productAttribute($_product, $_product->getShortDescription(), 'short_description') ?>
279                                     <a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $_productNameStripped ?>" 543                                   <a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $_productNameStripped ?>"
280                                        class="action more"><?php echo __('Learn More') ?></a> 544                                      class="action more"><?php echo __('Learn More') ?></a>
281                                 </div> 545                               </div>
282                             <?php endif; ?> 546                           <?php endif; ?>
283                             <?php if($_category_config['product_price']): ?> 547                           <?php if($_category_config['product_price']): ?>
284                             <?php echo $block->getProductPrice($_product) ?> 548                           <?php echo $block->getProductPrice($_product) ?>
285                             <?php endif; ?> 549                           <?php endif; ?>
    550 
    551                           <?php if($product_type != '13' && $product_type != '14' && $product_type != '19' && $product_type != '20'): ?>
286                             <?php echo $block->getProductDetailsHtml($_product); ?> 552                           <?php echo $block->getProductDetailsHtml($_product); ?>
    553                           <?php endif; ?>
287  554 
288                             <?php if($product_type != 3 && $product_type != 5 && $product_type != 6 && $product_type != 7 && $product_type != 8 && $product_type != 9 && $product_type != 11 && $product_type != 12): ?> 555                           <?php
289                             <div class="product-item-inner
">
 556                           $_product_show_actions = true;
290                                 <div class="product actions product-item-actions"> 557                           $_product_details_inner_class = '';
    558                           if(in_array($product_type, ['3','5','6','7','8','9','11','13','14','17','19','20'])) {
    559                             $_product_show_actions = false;
    560                             if($product_type == '14' && $_button_pos =='outside'){
    561                               $_product_show_actions = true;
    562                               $_product_details_inner_class .= ' button-pos'.$_button_pos;
    563                             }
    564                             if($product_type == '14' && $_icon_only1 ) {
    565                               $_product_details_inner_class .= ' show-cart-icon';
    566                             }
    567                             if($product_type == '17' && ($_quantity_pos =='below' || $_quantity_pos =='above')){
    568                               $_product_show_actions = true;
    569                             }
    570                             if($product_type == '19' && ($_link_pos == 'default' || $_link_pos == 'top')){
    571                               $_product_show_actions = true;
    572                             }
    573                             if($product_type == '20' && $_box_style == 'box_full'){
    574                               $_product_show_actions = true;
    575                             }
    576                           }
    577                           if($_product_show_actions): ?>
    578                           <div class="product-item-inner<?=$_product_details_inner_class;?>">
    579                             <?php if($product_type == '20' && $_box_style == 'box_full'){?>
    580                               <div class="product description product-item-description">
    581                                 <?php
    582                                 $length = 118;
    583                                 $shortContent = $_product->getShortDescription();
    584                                 echo $shortContent = strip_tags((strlen($shortContent) > $length) ? substr($shortContent,0,$length).'...' : $shortContent);
    585                                 ?>
    586                               </div>
    587                             <?php }?>
    588                             <div class="product actions product-item-actions<?php if(($product_type == '14' && $_button_pos == 'outside') || ($product_type == '20' && $_box_style == 'box_full')):?> d-flex align-items-center justify-content-center<?php endif;?>">
291                                     <?php if ($block->getMode() == 'grid'): ?> 589                               <?php if ($block->getMode() == 'grid'): ?>
292                                     <?php if($_category_config['addtowishlist'] && $product_type != 
4
): ?>
 590                               <?php if($_category_config['addtowishlist'] && $product_type != '4 && $product_type != '17' && $product_type != '19'): ?>
293                                     <?php if ($this->helper('Magento\Wishlist\Helper\Data')->isAllow()): ?> 591                               <?php if ($this->helper('Magento\Wishlist\Helper\Data')->isAllow()): ?>
294                                         <a href="#" 592                                   <a href="#"
295                                            class="action towishlist actions-secondary" 593                                      class="action towishlist actions-secondary"
296                                            title="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>" 594                                      title="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>"
297                                            aria-label="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>" 595                                      aria-label="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>"
298                                            data-post='<?php echo $block->getAddToWishlistParams($_product); ?>' 596                                      data-post='<?php echo $block->getAddToWishlistParams($_product); ?>'
299                                            data-action="add-to-wishlist" 597                                      data-action="add-to-wishlist"
300                                            role="button"> 598                                      role="button">
301                                             <span><?php echo __('Add to Wish List') ?></span> 599                                       <span><?php echo __('Add to Wish List') ?></span>
302                                         </a> 600                                   </a>
303                                     <?php endif; ?> 601                               <?php endif; ?>
304                                     <?php endif; ?> 602                               <?php endif; ?>
305                                     <?php endif; ?> 603                               <?php endif; ?>
306                                     <div class="actions-primary"> 604                               <div class="actions-primary">
307                                         <?php if ($_product->isSaleable()): ?> 605                                   <?php if ($_product->isSaleable()): ?>
308                                             <?php $postParams = $block->getAddToCartPostParams($_product); ?> 606                                       <?php $postParams = $block->getAddToCartPostParams($_product); ?>
309                                             <form data-role="tocart-form" action="<?php echo $postParams['action']; ?>" method="post"
>
 607                                       <form data-role="tocart-form" action="<?php echo $postParams['action']; ?>" method="post"  class="d-flex flex-column flex-sm-row">
310                                                 <input type="hidden" name="product" value="<?php echo $postParams['data']['product']; ?>"> 608                                           <input type="hidden" name="product" value="<?php echo $postParams['data']['product']; ?>">
311                                                 <input type="hidden" name="<?php echo Action::PARAM_NAME_URL_ENCODED; ?>" value="<?php echo $postParams['data'][Action::PARAM_NAME_URL_ENCODED]; ?>"> 609                                           <input type="hidden" name="<?php echo Action::PARAM_NAME_URL_ENCODED; ?>" value="<?php echo $postParams['data'][Action::PARAM_NAME_URL_ENCODED]; ?>">
312                                                 <?php if($product_type == 10
):?>
 610                                           <?php if($product_type == 10 || $product_type == 17):?>
313                                                     <div class="qty-box"> 611                                               <div class="qty-box">
314                                                         <a href="javascript:void(0)" class="qtyminus"><i class="porto-icon-minus"></i></a> 612                                                   <a href="javascript:void(0)" class="qtyminus"><i class="porto-icon-minus"></i></a>
315                                                         <input type="text" name="qty" id="qty" maxlength="12" value="<?php echo ($this->getMinimalQty($_product)?$this->getMinimalQty($_product):1) ?>" title="<?php /* @escapeNotVerified */ echo __('Qty') ?>" class="input-text qty" data-validate="<?php echo $block->escapeHtml(json_encode($block->getQuantityValidators())) ?>"/> 613                                                   <input type="text" name="qty" id="qty" maxlength="12" value="<?php echo ($this->getMinimalQty($_product)?$this->getMinimalQty($_product):1) ?>" title="<?php /* @escapeNotVerified */ echo __('Qty') ?>" class="input-text qty" data-validate="<?php echo $block->escapeHtml(json_encode($block->getQuantityValidators())) ?>"/>
316                                                         <a href="javascript:void(0)" class="qtyplus"><i class="porto-icon-plus"></i></a> 614                                                   <a href="javascript:void(0)" class="qtyplus"><i class="porto-icon-plus"></i></a>
317                                                     </div> 615                                               </div>
318                                                 <?php endif;?> 616                                           <?php endif;?>
319                                                 <?php echo $block->getBlockHtml('formkey')?> 617                                           <?php echo $block->getBlockHtml('formkey')?>
320                                                 <button type="submit" 618                                           <button type="submit"
321                                                         title="<?php echo $block->escapeHtml(__('Add to Cart')); ?>" 619                                                   title="<?php echo $block->escapeHtml(__('Add to Cart')); ?>"
322                                                         class="action tocart primary"> 620                                                   class="action tocart primary">
323                                                     <span><?php echo __('Add to Cart') ?></span> 621                                               <span><?php echo __('Add to Cart') ?></span>
324                                                 </button> 622                                           </button>
325                                             </form> 623                                       </form>
326                                         <?php else: ?> 624                                   <?php else: ?>
327                                             <?php if ($_product->getIsSalable()): ?> 625                                       <?php if ($_product->getIsSalable()): ?>
328                                                 <div class="stock available"><span><?php echo __('In stock') ?></span></div> 626                                           <div class="stock available"><span><?php echo __('In stock') ?></span></div>
329                                             <?php else: ?> 627                                       <?php else: ?>
330                                                 <div class="stock unavailable"><span><?php echo __('Out of stock') ?></span></div> 628                                           <div class="stock unavailable"><span><?php echo __('Out of stock') ?></span></div>
331                                             <?php endif; ?> 629                                       <?php endif; ?>
332                                         <?php endif; ?> 630                                   <?php endif; ?>
333                                     </div> 631                               </div>
334                                     <?php if ($block->getMode() == 'grid'
): ?>
 632                               <?php if ($block->getMode() == 'grid' && $product_type != '17' && $product_type != '19'): ?>
335                                     <?php if($_category_config['addtowishlist'] && $product_type == 4): ?> 633                               <?php if($_category_config['addtowishlist'] && $product_type == 4): ?>
336                                     <?php if ($this->helper('Magento\Wishlist\Helper\Data')->isAllow()): ?> 634                               <?php if ($this->helper('Magento\Wishlist\Helper\Data')->isAllow()): ?>
337                                         <a href="#" 635                                   <a href="#"
338                                            class="action towishlist actions-secondary" 636                                      class="action towishlist actions-secondary"
339                                            title="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>" 637                                      title="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>"
340                                            aria-label="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>" 638                                      aria-label="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>"
341                                            data-post='<?php echo $block->getAddToWishlistParams($_product); ?>' 639                                      data-post='<?php echo $block->getAddToWishlistParams($_product); ?>'
342                                            data-action="add-to-wishlist" 640                                      data-action="add-to-wishlist"
343                                            role="button"> 641                                      role="button">
344                                             <span><?php echo __('Add to Wish List') ?></span> 642                                       <span><?php echo __('Add to Wish List') ?></span>
345                                         </a> 643                                   </a>
346                                     <?php endif; ?> 644                               <?php endif; ?>
347                                     <?php endif; ?> 645                               <?php endif; ?>
348                                     <?php endif; ?> 646                               <?php endif; ?>
349                                     <?php if($_category_config['addtocompare']
): ?>
 647                               <?php if($_category_config['addtocompare'] && $product_type != '17' && $product_type != '19'): ?>
350                                     <?php 648                               <?php
351                                     $compareHelper = $this->helper('Magento\Catalog\Helper\Product\Compare'); 649                               $compareHelper = $this->helper('Magento\Catalog\Helper\Product\Compare');
352                                     ?> 650                               ?>
353                                     <a href="#" 651                               <a href="#"
354                                        class="action tocompare actions-secondary" 652                                  class="action tocompare actions-secondary"
355                                        title="<?php echo $block->escapeHtml(__('Add to Compare')); ?>" 653                                  title="<?php echo $block->escapeHtml(__('Add to Compare')); ?>"
356                                        aria-label="<?php echo $block->escapeHtml(__('Add to Compare')); ?>" 654                                  aria-label="<?php echo $block->escapeHtml(__('Add to Compare')); ?>"
357                                        data-post='<?php echo $compareHelper->getPostDataParams($_product); ?>' 655                                  data-post='<?php echo $compareHelper->getPostDataParams($_product); ?>'
358                                        role="button"> 656                                  role="button">
359                                         <span><?php echo __('Add to Compare') ?></span> 657                                   <span><?php echo __('Add to Compare') ?></span>
360                                     </a> 658                               </a>
361                                     <?php endif; ?> 659                               <?php endif; ?>
362                                 </div> 660                             </div>
363                             </div> 661                           </div>
364                             <?php endif; ?> 662                           <?php endif; ?>
365                         </div> 663                         </div>
    664                         <?php endif;?>
    665                       </div>
366                     </div> 666                     </div>
367                     <?php echo($iterator == count($_productCollection)+1) ? '</div>' : '' ?> 667                     <?php echo($iterator == count($_productCollection)+1) ? '</div>' : '' ?>
368                 <?php endforeach; ?> 668                 <?php endforeach; ?>
369             </div> 669             </div>
370         </div> 670         </div>
371         <script type="text/javascript"> 671         <script type="text/javascript">
372           require([ 672           require([
373             'jquery', 673             'jquery',
374             'owlcarousel', 674             'owlcarousel',
375             'lazyload' 675             'lazyload'
376           ], function ($) { 676           ], function ($) {
    677             <?php if($product_type == '20'){?>
    678               window.setTimeout(function(){
    679                 $( '.product-item-info .effect-bhesfd' ).each( function() {
    680                     var $item = $( this ),
    681                         $detail = $item.find( '.product-item-details .product-item-inner' ),
    682                         height = $item.height() + $detail.height() + 32;
    683                     $item.find( '>.content-shadow' ).height( height );
    684                     $( window ).on( 'resize', function() {
    685                         $detail = $item.find( '.product-item-details .product-item-inner' );
    686                         height = $item.height() + $detail.height() + 32;
    687                         $item.find('>.content-shadow').height( height );
    688                     } );
    689                 });
    690               },500);
    691             <?php }?>
377             $("#porto-filter-products-<?= $id ?> .owl-carousel").owlCarousel({ 692             $("#porto-filter-products-<?= $id ?> .owl-carousel").owlCarousel({
378               autoplay: <?php echo $enable_autoplay;?>, 693               autoplay: <?php echo $enable_autoplay;?>,
379               autoplayTimeout: 5000, 694               autoplayTimeout: 5000,
380               autoplayHoverPause: true, 695               autoplayHoverPause: true,
381               loop: <?php echo $enable_slide_loop;?>, 696               loop: <?php echo $enable_slide_loop;?>,
382               navRewind: true, 697               navRewind: true,
383               lazyLoad:true, 698               lazyLoad:true,
384               margin: 0, 699               margin: 0,
385               nav: <?php echo $show_slide_nav;?>, 700               nav: <?php echo $show_slide_nav;?>,
386               dots: <?php echo $show_slide_page;?>, 701               dots: <?php echo $show_slide_page;?>,
387               responsive: { 702               responsive: {
388                 0: { 703                 0: {
389                   items:<?php echo $mobile_slide_columns; ?> 704                   items:<?php echo $mobile_slide_columns; ?>
390                 }, 705                 },
391                 640: { 706                 640: {
392                   items:<?php echo $mobile_slide_columns; ?> 707                   items:<?php echo $mobile_slide_columns; ?>
393                 }, 708                 },
394                 768: { 709                 768: {
395                   items: <?php echo $tablet_slide_columns; ?> 710                   items: <?php echo $tablet_slide_columns; ?>
396                 }, 711                 },
397                 992: { 712                 992: {
398                   items: <?php echo $tablet_slide_columns; ?> 713                   items: <?php echo $tablet_slide_columns; ?>
399                 }, 714                 },
400                 1200: { 715                 1200: {
401                   items: <?php echo $desktop_slide_columns; ?> 716                   items: <?php echo $desktop_slide_columns; ?>
402                 } 717                 }
403               } 718               }
404             }); 719             });
405             $("img.porto-lazyload:not(.porto-lazyload-loaded)").lazyload({effect:"fadeIn", effect_speed: 400 }); 720             $("img.porto-lazyload:not(.porto-lazyload-loaded)").lazyload({effect:"fadeIn", effect_speed: 400 });
406             if ($('.porto-lazyload:not(.porto-lazyload-loaded)').closest('.owl-carousel').length) { 721             if ($('.porto-lazyload:not(.porto-lazyload-loaded)').closest('.owl-carousel').length) {
407                 $('.porto-lazyload:not(.porto-lazyload-loaded)').closest('.owl-carousel').on('initialized.owl.carousel', function() { 722                 $('.porto-lazyload:not(.porto-lazyload-loaded)').closest('.owl-carousel').on('initialized.owl.carousel', function() {
408                     $(this).find('.porto-lazyload:not(.porto-lazyload-loaded)').trigger('appear'); 723                     $(this).find('.porto-lazyload:not(.porto-lazyload-loaded)').trigger('appear');
409                 }); 724                 });
410                 $('.porto-lazyload:not(.porto-lazyload-loaded)').closest('.owl-carousel').on('changed.owl.carousel', function() { 725                 $('.porto-lazyload:not(.porto-lazyload-loaded)').closest('.owl-carousel').on('changed.owl.carousel', function() {
411                     $(this).find('.porto-lazyload:not(.porto-lazyload-loaded)').trigger('appear'); 726                     $(this).find('.porto-lazyload:not(.porto-lazyload-loaded)').trigger('appear');
412                 }); 727                 });
413             } 728             }
414           }); 729           });
415         </script> 730         </script>
416       </div> 731       </div>
417     </div> 732     </div>
418     <?php if (!$_dailydealhelper->isLoadedTimer()): ?> 733     <?php if (!$_dailydealhelper->isLoadedTimer()): ?>
419     <script type="text/javascript"> 734     <script type="text/javascript">
420     require([ 735     require([
421         'jquery' 736         'jquery'
422     ], function ($) { 737     ], function ($) {
423     // Timer for LEFT time for Dailydeal product 738     // Timer for LEFT time for Dailydeal product
424         var _second = 1000; 739         var _second = 1000;
425         var _minute = _second * 60; 740         var _minute = _second * 60;
426         var _hour = _minute * 60; 741         var _hour = _minute * 60;
427         var _day = _hour * 24; 742         var _day = _hour * 24;
428         var timer; 743         var timer;
429  744 
430         //Set date as magentodatetime 745         //Set date as magentodatetime
431         var date = new Date('<?php echo $_dailydealhelper->getcurrentDate() ?>'); 746         var date = new Date('<?php echo $_dailydealhelper->getcurrentDate() ?>');
432         var l_date = new Date(); 747         var l_date = new Date();
433         var offset_date = l_date - date; 748         var offset_date = l_date - date;
434  749 
435         function showRemaining() 750         function showRemaining()
436         { 751         {
437             $(".sw-dailydeal-wrapper").each(function(){ 752             $(".sw-dailydeal-wrapper").each(function(){
438                 var unique_id = $(this).attr("data-unique-id"); 753                 var unique_id = $(this).attr("data-unique-id");
439                 // get Value of dailydeal product 754                 // get Value of dailydeal product
440                 var cid='countdown_'+unique_id; 755                 var cid='countdown_'+unique_id;
441                 var daysid='countdown_days_'+unique_id; 756                 var daysid='countdown_days_'+unique_id;
442                 var hoursid='countdown_hours_'+unique_id; 757                 var hoursid='countdown_hours_'+unique_id;
443                 var minutesid='countdown_minutes_'+unique_id; 758                 var minutesid='countdown_minutes_'+unique_id;
444                 var secondsid='countdown_seconds_'+unique_id; 759                 var secondsid='countdown_seconds_'+unique_id;
445  760 
446                 var startdateid='fromdate_'+unique_id; 761                 var startdateid='fromdate_'+unique_id;
447                 var id='todate_'+unique_id; 762                 var id='todate_'+unique_id;
448  763 
449                 var enddate = new Date($('#'+id).val()); 764                 var enddate = new Date($('#'+id).val());
450                 var dealstartdate=new Date($('#'+startdateid).val()); 765                 var dealstartdate=new Date($('#'+startdateid).val());
451  766 
452                 var currentdate=new Date(); 767                 var currentdate=new Date();
453  768 
454                 //Get Difference between Two dates 769                 //Get Difference between Two dates
455                 var distance = enddate - (currentdate - offset_date); 770                 var distance = enddate - (currentdate - offset_date);
456  771 
457                 $('.sw-dailydeal-wrapper').show(); 772                 $('.sw-dailydeal-wrapper').show();
458  773 
459                 if (distance < 0) { 774                 if (distance < 0) {
460                    // clearInterval(timer); 775                    // clearInterval(timer);
461                     $('#expired_'+unique_id).html("<span style='font-size:25px; color:#000;'>EXPIRED!<span>"); 776                     $('#expired_'+unique_id).html("<span style='font-size:25px; color:#000;'>EXPIRED!<span>");
462  777 
463                 } else if(dealstartdate > currentdate) { 778                 } else if(dealstartdate > currentdate) {
464                    $('.countdowncontainer_'+unique_id).hide(); 779                    $('.countdowncontainer_'+unique_id).hide();
465                    var msg="<span style='font-size:15px; color:#000;'> Coming Soon..<br>Deal Start at:<br>"+$('#'+startdateid).val()+"<span>"; 780                    var msg="<span style='font-size:15px; color:#000;'> Coming Soon..<br>Deal Start at:<br>"+$('#'+startdateid).val()+"<span>";
466                    $('#expired_'+unique_id).html(msg); 781                    $('#expired_'+unique_id).html(msg);
467                 } else { 782                 } else {
468                     var days = Math.floor(distance / _day); 783                     var days = Math.floor(distance / _day);
469                     var hours = Math.floor((distance % _day) / _hour); 784                     var hours = Math.floor((distance % _day) / _hour);
470                     var minutes = Math.floor((distance % _hour) / _minute); 785                     var minutes = Math.floor((distance % _hour) / _minute);
471                     var seconds = Math.floor((distance % _minute) / _second); 786                     var seconds = Math.floor((distance % _minute) / _second);
472  787 
473                     if(hours < 10) 788                     if(hours < 10)
474                         hours = "0" + hours; 789                         hours = "0" + hours;
475                     if(minutes < 10) 790                     if(minutes < 10)
476                         minutes = "0" + minutes; 791                         minutes = "0" + minutes;
477                     if(seconds < 10) 792                     if(seconds < 10)
478                         seconds = "0" + seconds; 793                         seconds = "0" + seconds;
479                     $('.countdowncontainer_'+unique_id).show(); 794                     $('.countdowncontainer_'+unique_id).show();
480                     $('#'+daysid).html(days); 795                     $('#'+daysid).html(days);
481                     $('#'+hoursid).html(hours); 796                     $('#'+hoursid).html(hours);
482                     $('#'+minutesid).html(minutes); 797                     $('#'+minutesid).html(minutes);
483                     $('#'+secondsid).html(seconds); 798                     $('#'+secondsid).html(seconds);
484                 } 799                 }
485             }); 800             });
486         } 801         }
487  802 
488         // Set Interval 803         // Set Interval
489         timer = setInterval(function() 804         timer = setInterval(function()
490         { 805         {
491             showRemaining(); 806             showRemaining();
492         }, 1000); 807         }, 1000);
493     }); 808     });
494     </script> 809     </script>
495     <?php $_dailydealhelper->setLoadedTimer(); ?> 810     <?php $_dailydealhelper->setLoadedTimer(); ?>
496     <?php endif; ?> 811     <?php endif; ?>
497     <?php if (!$block->isRedirectToCartEnabled()) : ?> 812     <?php if (!$block->isRedirectToCartEnabled()) : ?>
498         <script type="text/x-magento-init"> 813         <script type="text/x-magento-init">
499         { 814         {
500             "[data-role=tocart-form], .form.map.checkout": { 815             "[data-role=tocart-form], .form.map.checkout": {
501                 "catalogAddToCart": {} 816                 "catalogAddToCart": {}
502             } 817             }
503         } 818         }
504         </script> 819         </script>
505     <?php endif; ?> 820     <?php endif; ?>
506 <?php endif; ?> 821 <?php endif; ?>